package concurrency;

/**
 * Created by admin on 2017/1/16.
 */
public class TestInnerOuterClass {

    public class Outer{

        public void print(){
            System.out.print("outer");
        }
        public class Inner{

            public Outer outer(){
                return Outer.this;
            }
            public void print(){
                System.out.print("inner");
            }

        }
    }
    public static void main(java.lang.String[] arg0){
        TestInnerOuterClass oo = new TestInnerOuterClass();
        Outer outer = oo.new Outer();
        outer.print();
        Outer.Inner inner = outer.new Inner();
        inner.outer().print();
    }
}
